import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;


public class CreateButton extends JButton implements ActionListener {

	private GuiClient gui;
	
	public CreateButton(GuiClient gui) {
		super("Create questionnaire");
		
		this.gui = gui;
		
		addActionListener(this);
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		new QuestionWindow(gui);
		
	}

}
